import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../RouteConfig/Route.dart';
class ATestGetxPage extends StatelessWidget {
   ATestGetxPage({super.key});
  var _routes = [];
  @override
  Widget build(BuildContext context) {
    _routes = Routes.where((route) {
      if(route.name.startsWith('/ATestGetxPage/')){
        print('JtTag:testName:${route.name.split('/')}');
      }


      return  route.name.startsWith('/ATestGetxPage/')&&route.name.split('/').length==3;
    }).toList();
    return Scaffold(
      appBar: AppBar(
        title: const Text('ATestGetxPage'),
      ),
      body:
      ListView(children: _routes.map((route) => ElevatedButton(child: Text(route.name.toString().split('/').last),onPressed: (){
        Get.toNamed(route.name);
      })).toList()),
    );
  }
}


